using System;

namespace JT808Protocol.Models.BodyParserStrategy.Location.LocationAddition
{
    /// <summary>
    /// 扩展车辆信号状态位，定义见 表 31
    /// </summary>
    public class LaVehicleExtensionStatus_0x25 : ILocationAddition
    {
        public override ILocationAddition ReadEntity(ReadOnlySpan<byte> source, int startIndex)
        {
            DataLength = (byte)(source[startIndex + 1] + 2);
            // todo:车辆状态待编写
            // 参见 808-2013 表 31
            // Logger.Warn($"位置上报附加车辆状态暂未解析，data:{BitConverter.ToString(source, startIndex, source[startIndex + 1] + 2)}");

            return this;
        }
    }
}